package Array;

import java.util.Arrays;

/*
遍历数组，存入1到10,用到了Arrays工具类
 */
public class Input1_10 {
    public static void main(String[] args) {
        int[] a = new int[10];
        int b = 1;
        for (int i = 0; i < a.length; i++) {
            a[i] = b;
            b++;
        }
        System.out.println(Arrays.toString(a));
    }
}

